<script>
import { defineComponent } from 'vue';
import { myLogin } from '../../api/user';
export default defineComponent({
    data() {
        return {
            tableData: [{
                name: '韩狰',
                email: 'Tom',
                phone: '15589446563',
            }],
        }
    },
    mounted() {
        myLogin({ username:'admin',password:'123456'}).then((res) => {
            console.log(res);
            // window.localStorage.setItem('token',res.data.token);

        })
    }
})
</script>


<template>
    <div>
        <h1>用户页面</h1>
        <el-table :data="tableData" stripe style="width: 100%">
            <el-table-column type="index" width="50" />
            <el-table-column prop="name" label="姓名" width="180" />
            <el-table-column prop="email" label="邮箱" width="180" />
            <el-table-column prop="phone" label="电话" width="180" />
            <el-table-column prop="address" label="角色" width="180" />
            <el-table-column prop="address" label="状态" width="180" />
            <el-table-column prop="address" label="操作" width="180" />
        </el-table>
    </div>
</template>